-- GENERATED SPELL FOR [Bronze Drakonid] --


function spell0_14263(pUnit, Event) --@Brood Power: Bronze,Self--
pUnit:FullCastSpellOnTarget(22642,pUnit)
pUnit:RegisterEvent('Sorts_14263', 6267, 1)
end

function spell1_14263(pUnit, Event) --@Summon Player,n/a--
pUnit:FullCastSpellOnTarget(20477,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14263', 591, 1)
end

function Sorts_14263(pUnit, Event)
local choix_sorts_14263 = math.random(0, 1)
if choix_sorts_14263 == 0 then
pUnit:RegisterEvent('spell0_14263', 1, 1)
end
if choix_sorts_14263 == 1 then
pUnit:RegisterEvent('spell1_14263', 1, 1)
end
end

function mob14263_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14263', math.random(1500, 3000), 1)
end

function mob14263_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14263_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14263_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14263, 1, 'mob14263_Action')
RegisterUnitEvent(14263, 2, 'mob14263_Leave')
RegisterUnitEvent(14263, 3, 'mob14263_Kill')
RegisterUnitEvent(14263, 4, 'mob14263_Die')
